package com.tencent.wxcloudrun.controller;

import com.tencent.wxcloudrun.config.ApiResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;

/**
 * 创建人: 武奇
 * 创建时间: 2022/2/11
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    @GetMapping("/index")
    public ApiResponse index() {
        return ApiResponse.ok(Collections.singletonMap("msg", "success"));
    }

}
